/**
 * Copyright© 2003-2019 浙江汇信科技有限公司, All Rights Reserved. <br/>
 */
package com.icinfo.cloud.provider.punish.config.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 描述: 案件标签表 case_tag_record 对应的实体类.<br>
 * WARNING：不是表中字段的属性必须加@Transient注解
 * @author lxj
 * @date 2022年02月23日
 */
@Data
@Table(name = "upcase.config_case_tag")
public class ConfigCaseTag implements Serializable {
    /**
     * 主键
     */
    @Id
    @Column(name = "id")
    private Integer id;

    /**
     * 标签名称
     */
    @Column(name = "tag_name")
    private String tagName;

    /**
     * 标签编码
     */
    @Column(name = "tag_code")
    private String tagCode;

    /**
     * 类型：1.一级标签，2.二级标签
     */
    @Column(name = "type")
    private Short type;

    /**
     * 父级id
     */
    @Column(name = "parent_id")
    private Integer parentId;

    /**
     * 创建时间
     */
    @Column(name = "create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime createTime;

    private static final long serialVersionUID = 1L;


}